package com.chen.service.impl;

import com.chen.dao.UserMapper;
import com.chen.pojo.User;
import com.chen.service.UserService;

public class UserServiceImpl implements UserService {
    //组合mapper
    private UserMapper userMapper;

    //set注入

    public void setUserMapper(UserMapper userMapper) {
        this.userMapper = userMapper;
    }


    public User getUser(String userName, String passWord) {
        return userMapper.getUser(userName,passWord);
    }

    @Override
    public User getUserByName(String userName) {
        return userMapper.getUserByName(userName);
    }
}
